package sg.edu.nus.iss.vmcs.store;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;

public abstract class PropertyLoaderNew 
{
		private Properties prop;
		//private String fileName;
		//private String category;
		protected Persistence persistype;

		public PropertyLoaderNew (Persistence persistype){
			this.persistype = persistype;
		}
		
		public void initialize() throws IOException {
			persistype.initialize();
		}
		
		public void saveProperty() throws IOException {
			persistype.saveProperty();
		}

		public int getNumOfItems() {
			return persistype.getNumOfItems();
		}

		
		public void setNumOfItems(int vl) {
			persistype.setNumOfItems(vl);
		}
		
		public abstract StoreItem getItem(int index);

		public abstract void setItem(int index, StoreItem item);
	 
		public String getValue(String key) {
			return persistype.getValue(key);
		}

		
		public void setValue(String key, String value) {
			persistype.setValue(key, value);
		}
	}




